export function fullScreen () {
  const element = document.documentElement
  if (window.ActiveXObject) {
    const WsShell = new window.ActiveXObject('WScript.Shell')
    WsShell.SendKeys('{F11}')
  } else if (element.requestFullScreen) {
    element.requestFullScreen()
  } else if (element.msRequestFullscreen) {
    element.msRequestFullscreen()
  } else if (element.webkitRequestFullScreen) {
    element.webkitRequestFullScreen()
  } else if (element.mozRequestFullScreen) {
    element.mozRequestFullScreen()
  }
}

export function fullExit () {
  const element = document.documentElement
  if (window.ActiveXObject) {
    const WsShell = new window.ActiveXObject('WScript.Shell')
    WsShell.SendKeys('{F11}')
  } else if (element.requestFullScreen) {
    document.exitFullscreen()
  } else if (element.msRequestFullscreen) {
    document.msExitFullscreen()
  } else if (element.webkitRequestFullScreen) {
    document.webkitCancelFullScreen()
  } else if (element.mozRequestFullScreen) {
    document.mozCancelFullScreen()
  }
}
